home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_1.lha / 6_1 / tst3.c < prev    next >
Text File  |  1993-08-08  |  466b  |  26 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <strclass.h>
  6. include <6_1b.c>
  7. include <6_1c.c>
  8.  
  9. ain()
  10.  
  11.    string w = "abcd";
  12.    cout << "w='" << w << "'\n";
  13.  
  14.    string x = "wxyz";
  15.    cout << "x='" << x << "'\n";
  16.  
  17.    cout << "w+x='" << (w+x) << "'\n";
  18.  
  19.    string y = w + x;
  20.    cout << "y='" << y << "'\n";
  21.  
  22.    y += w;
  23.    cout << "y='" << y << "'\n";
  24.    return 0;
  25.  
  26.